/**
 * 基础路由
 * @type { *[] }
 */
import Layout from "@/layout/index.vue";
const constantRouterMap = [
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录",
      hidden: true,
    },
  },

  {
    component: Layout,
    children: [
      {
        path: "/example",
        name: "ExampleHelloIndex",
        component: () => import("@/views/example/hello/Index.vue"),
        meta: {
          title: "案例",
        },
      },
    ],
  },

  {
    component: Layout,
    children: [
      {
        path: "/fdmail",
        name: "FdMail",
        component: () => import("@/views/fdmail/index.vue"),
        meta: {
          title: "福大OA",
          icon: "fdmail",
        },
      },
    ],
  },
  {
    component: Layout,
    children: [
      {
        path: "/baidu",
        name: "Baidu",
        component: () => import("@/views/webview/index.vue"),
        meta: {
          title: "百度",
          icon: "baidu",
          webUrl: "https://www.baidu.com",
        },
      },
      {
        path: "/taobap",
        name: "Taobao",
        component: () => import("@/views/webview/index.vue"),
        meta: {
          title: "淘宝",
          icon: "taobao",
          webUrl: "https://www.taobao.com/",
        },
      },
      {
        path: "/ceshi",
        name: "Ceshi",
        component: () => import("@/views/webview/index.vue"),
        meta: {
          title: "Storage测试",
          webUrl: "http://192.168.30.44:3001/#/home",
          isWebview: true,
          // useIpc: true,
          storageKey: "admin-element-vue-token",
          storageValue: "admin",
        },
      },
      {
        path: "/tanguowang",
        name: "Tanguowang",
        component: () => import("@/views/webview/index.vue"),
        meta: {
          title: "Cookie测试",
          icon: "tangguowang",
          webUrl: "https://www.donet5.com/UserCenter",
          useIpc: true,
          isWebview: true,
          cookies: [
            {
              url: "https://www.donet5.com",
              name: "ASP.NET_SessionId",
              value: "gqphbcidfn1eyr5csynu2fcp",
            },
            {
              url: "https://www.donet5.com",
              name: "CookeUniqueKey",
              value: "86f62802-364e-41f0-8477-ef5c34785986",
            },
          ],
        },
      },
    ],
  },
];

export default constantRouterMap;
